package com.matt.sooncleaner.menu

import android.content.Context
import android.content.Intent
import android.net.Uri

/**
 *
 * Created by xiexiang10 on 2024/6/17.
 **/
object EmailUtils {
    fun startEmailApp(context: Context) {
        val intent = Intent(Intent.ACTION_SENDTO).apply {
            data = Uri.parse("mailto:") // Only email apps handle this.
            putExtra(Intent.EXTRA_EMAIL, "")
            putExtra(Intent.EXTRA_SUBJECT, "")
        }
        if (intent.resolveActivity(context.packageManager) != null) {
            context.startActivity(intent)
        }
    }
}